package com.app.mapper;

import com.app.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface AccountMapper {
    @Select("SELECT * FROM TBL_Account")
    ArrayList<Account> getAllAccount();

    @Select("SELECT * FROM TBL_Account WHERE LogonId = #{logonId}")
    Account getAccountById(String id);
}
